<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>

<div class="main colorbg1 mt10 line30"><span class="color2 ml10">您现在的位置：</span><a href="<?php echo url('index');?>">首页</a> > 站内搜索</div>
<div class="main mt10">
  <div class="main border1 fleft">
    <ul class="xw3 mt20">
      <?php 
	  	foreach ($list as $row) {
	  	switch($row['type_id']){
			case 1:
				$url = '/noticeread';
				break;
			case 36:
				$url = '/courseread';
				break;
			case 37:
				$url = '/courseread';
				break;
			default:
				$url = '/newsread';
		}
	  ?>
      <li style="width:800px;"><a href="<?=url($url, array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes(str_replace($_ctx->keyword,'<font color=red>'.$_ctx->keyword.'</font>',$row['title'])),82);?></a> <span><?php echo date('Y-m-d', $row['release_date']);?></span><br/>
      </li>
      <?php }?>
    </ul>
    <div class="fright mt20 width630 mb20" style="padding-right:150px;">
      <?php $this->_control("pagination2", "", array('pagination'=>$pager));?>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"> </div>
</div>
<?$this->_endblock();?>
